import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  HomePage({Key key}) : super(key: key);

  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          RaisedButton(
             child: Text('上拉分页加载更多页面'),
             onPressed: (){
               Navigator.pushNamed(context, '/news');
             }
           ),
          RaisedButton(
            child: Text('获取我的设备信息'),
            onPressed: (){
              Navigator.pushNamed(context, '/devicePage');
            }
          ),
          RaisedButton(
            child: Text('获取我的位置信息'),
            onPressed: (){
              Navigator.pushNamed(context, '/locationPage');
            }
          ),
          RaisedButton(
            child: Text('拍照 图片选择'),
            onPressed: (){
              Navigator.pushNamed(context, '/imagePicker');
            }
          ),
          RaisedButton(
            child: Text('video_player+chewie播放视频'),
            onPressed: (){
              Navigator.pushNamed(context, '/videoPlayer');
            }
          ),
          RaisedButton(
            child: Text('Connectivity网络'),
            onPressed: (){
              Navigator.pushNamed(context, '/network');
            }
          ),
          RaisedButton(
            child: Text('本地存储'),
            onPressed: (){
              Navigator.pushNamed(context, '/storage');
            }
          ),
          RaisedButton(
            child: Text('扫码'),
            onPressed: (){
              Navigator.pushNamed(context, '/scan');
            }
          ),
          RaisedButton(
            child: Text('检查版本升级APP'),
            onPressed: (){
              Navigator.pushNamed(context, '/appVersion');
            }
          ),
          RaisedButton(
            child: Text('UrlLauncher'),
            onPressed: () => Navigator.pushNamed(context, '/urlLauncher')
          )
        ], 
      )
    );
  }
}
